import request from '@/utils/request'

// 获得文件分页
export function listFile(query) {
  return request({
    url: '/infra/file/list',
    method: 'get',
    params: query
  })
}

// 删除文件
export function deleteFile(id) {
  return request({
    url: `/infra/file/${id}`,
    method: 'delete'
  })
}
